<?exit?>
<!--{if $_G['uid']}-->
<ul id="navmsg_menu" class="nav_msglist" style="display:none; width:90px;">
	<!--{if $_G['myshopid'] > 0}-->
	<li onmouseout="this.className='mout'" onmouseover="this.className='mover'"><a onclick="pm_view('systempm');" href="javascript:;">{$lang['pm_shop_notice']}({$pm_new['newpm']})</a></li>
	<!--{else}-->
	<li onmouseout="this.className='mout'" onmouseover="this.className='mover'"><a href="pm.php?filter=systempm" target="_blank">{$lang['pm_system']}({$pm_new['newpm']})</a></li>
	<!--{/if}-->
	<li onmouseout="this.className='mout'" onmouseover="this.className='mover'"><a href="pm.php?filter=privatepm" target="_blank">{$lang['pm_personal']}({$pm_new['newprivatepm']})</a></li>
	<li onmouseout="this.className='mout'" onmouseover="this.className='mover'"><a href="pm.php?filter=announcepm" target="_blank">{$lang['pm_announce']}({$pm_new['newchatpm']})</a></li>
</ul>

<ul id="myshopmenu_menu" class="nav_msglist" style="position:absolute; display:none; width:135px;">
<!--{loop $_G['smallmyshopsarr'] $myshop}-->
	<li onmouseout="this.className='mout'" onmouseover="this.className='mover'"><a href="{$_G['manageshopurl']}{$myshop['itemid']}" title="$lang['myshop_tomanage']" class="y">$lang['myshop_tomanage']</a><a href="store.php?id={$myshop['itemid']}" title="{$myshop['subject']}" target="_blank">{$myshop['briefsubject']}</a></li>
<!--{/loop}-->
<!--{if $_G['member']['shopcount'] > 10}-->
	<li><a href="#" onclick="showWindow('moreshops', 'shop', '', '{$lang[myshop]}');">{$lang['myshop_moreshops']}</a></li>
<!--{/if}-->
</ul>
<!--{/if}-->
<div class="topnav cl">
	<div style="width:960px; margin:auto;">
			<p class="y navinf">
				<!--{if $inmap}--><a href="index.php">{$lang['to_street']}</a><!--{else}--><a href="map.php" >{$lang['to_mapshop']}</a><!--{/if}-->
			</p>
			
			<ul class="cl">
				<li class="navlogo"><a href="{$_G['siteurl']}">$_G['setting']['sitename']</a></li>
				<li><span><a href="javascript:;" onclick="javascript:addBookmark('{$_G[setting][sitename]}', '{$_G[siteurl]}');">$lang['addfav']</a></span></li>
			</ul>
	</div>
</div>
<!--{ad/headerbanner/wrap mbm/1}-->
<div id="hd">
	<div class="wrap">
		<div class="hdc cl">
			<h2><a href="index.php" title="{$_G['setting']['sitename']}"><img border="0" alt="$lang['brand']" src="templates/site/default/images/logo.gif"></a></h2>
			<!--{if (!$_G['uid'] && !$in_message) || (!$_G['uid'] && $_G['setting']['siteclosed'])}-->
			<div class="login">
				<form action="batch.login.php?action=login" method="post" name="user_login_form" id="user_login_form">
				<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
				<div class="login_lk">
					<p><a rel="nofollow" target="_blank" href="{$_G['setting']['regurl']}">{$lang['register']}&nbsp;</a></p>
					<p><a href="misc.php?ac=getpassword">{$lang['lostpasswd']}</a></p>
				</div>
				<div class="login_fm">
					<p>
						<label class="z" for="username">{$lang['username']}</label>
						<input tabindex="1" type="text" tabindex="1" name="username" class="px vm" />
						&nbsp;<input type="checkbox" checked="checked" name="cookietime" value="2592000" class="pc" tabindex="903" id="ls_cookietime" />
						<label for="ls_cookietime">{$lang['remember_pwd']}</label>
					</p>
					<p>
						<label class="z" for="password">{$lang['password']}</label>
						<input tabindex="2" type="password" {if $_G['setting']['seccode']} onfocus="addseccode();"{/if} tabindex="2" name="password" class="px vm" />
						&nbsp;<button type="submit" onclick="return submitcheck();" class="pn vm" tabindex="4"><em>{$lang['login']}</em></button>
					</p>
					<!--{if $_G['setting']['seccode']}-->
					<div id="login_authcode_img">
						<a href="javascript:;" onclick="javascript:$('#login_authcode_img').hide();" class="cls">{$lang['close']}</a>
						<p class="mbn"><strong>{$lang['seccode']}</strong></p>
						<p><input tabindex="3"  type="text" autocomplete="off" onfocus="showseccode();" tabindex="3" name="seccode" id="seccode" class="px" /> <a href="javascript:updateseccode();">{$lang['chageanother']}</a></p>
						<p>{$lang['please_input_char_in_pic']}</p>
						<p><a title="$lang['captcha_tips']" href="javascript:updateseccode();"><img id="img_seccode" alt="{$lang['seccode_alter']}" src="seccode.php"></a></p>
					</div>
					<!--{/if}-->
				</div>
				</form>
			</div>
			<script>bindform('user_login_form');</script>
			<!--{elseif $_G['uid'] && !$in_message}-->
			<div id="um">
				<div class="avt">
					<img alt="avatar" src="{UC_API}/avatar.php?uid=$_G[uid]&rand=$_G[timestamp]&size=small" />
				</div>
				<p>
					<strong class="vwmy">{eval echo stripslashes($_G['username'])}</strong>
					<!--{if $_G['firstshopid']}-->
						<span class="pipe">|</span><a target="_blank" href="store.php?id={$_G['firstshopid']}" id="myshopmenu" onmouseover="showMenu(this.id)" class="showmenu">{$lang['myshop']}</a>
					<!--{/if}-->
					<!--{if ckfounder($_G['uid']) || $_G['member']['allowadmincp']}-->
						<span class="pipe">|</span><a target="_blank" href="admin.php">{$lang['admincp']}</a>
					<!--{/if}-->
					<!--{if exists_discuz()}-->
						<span class="pipe">|</span><a href="pm.php?filter=privatepm" target="_blank" id="navmsg" {if $pm_new['newpm']}class="new"{/if} onmouseover="showMenu(this.id)">{$lang['pm_new']}{if $pm_new['newpm']}({$pm_new['newpm']}){/if}</a>
					<!--{/if}-->
					<span class="pipe">|</span><a rel="nofollow" href="batch.login.php?action=logout">{$lang['logout']}</a>
				</p>
				<!--{if ($_G['myshopstatus'] == 'verified') && !pkperm('isadmin') && !$_G['member']['taskstatus']}-->
				<p>{$lang['shopopenmsg']}</p>
				<!--{/if}-->
			</div>
			<!--{/if}-->
		</div>
		<div id="nv">
			<ul>
				<!--{loop $_G['setting']['site_nav'] $v}-->
				<!--{if $v["available"] == 1}-->
				<li {$active[$v['flag']]}><a href="$v['url']" title="$v['name']" $v['ext']>$v['name']</a></li>
				<!--{/if}-->
				<!--{/loop}-->
			</ul>
		</div>
		<!--{if ('map' == CURSCRIPT || 'index' == CURSCRIPT) && !$in_message}-->
		<div class="cl" id="scbar">
			<form id="form_search" target="_blank" method="get" name="" action="street.php?range=all" onsubmit="return brand_search(this)">
			<table cellspacing="0" cellpadding="0">
				<tr>
					<td><input type="text" name="keyword" id="srchtxt" value="{$lang['inputkeyword']}"></td>
					<td>
						&nbsp;
						<label title="{$lang['sshop']}" for="mod_sshop"><input type="radio" checked="checked" value="shop" name="mod" class="pr" id="mod_sshop"> {$lang['sshop']}</label>
						<label title="{$lang['scoupon']}" for="mod_scoupon"><input type="radio" value="consume" name="mod" class="pr" id="mod_scoupon"> {$lang['scoupon']}</label>
						<label title="{$lang['sgood']}" for="mod_sgood"><input type="radio" value="goods" name="mod" class="pr" id="mod_sgood"> {$lang['sgood']}</label>
						<label title="{$lang['sgroupbuy']}" for="mod_sgroupbuy"><input type="radio" value="groupbuy" name="mod" class="pr" id="mod_sgroupbuy"> {$lang['sgroupbuy']}</label>
					</td>
					<td><button value="true" name="searchsubmit" id="search_submit" type="submit">{$lang['search']}</button></td>
					<td></td>
					<td><div class="hot"></div></td>
				</tr>
			</table>
			</form>
		</div>
		<!--{/if}-->
	</div>
</div>

<script charset="utf-8" type="text/javascript" src="static/js/header.js"></script>
